package com.todo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("u_friend_list")
public class UserFriendList {
    /**
     * 用户uid
     */
    @TableId(value = "uid")
    private String uid;

    /**
     * 好友uid
     */
    private String fUid;

    /**
     * 成为好友的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 分组 默认为好友
     */
    private String group;

}
